package com.ossjk.qlh.minapp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ossjk.core.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 企业
 *
 * @author parker
 * @since 2020-08-12
 */
@ApiModel(value = "企业")
public class Enterprise extends BaseEntity<Enterprise> {

    private static final long serialVersionUID = 1L;
    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称")
    @TableField("ename")
    private String ename;
    /**
     * 签约时间
     */
    @ApiModelProperty(value = "签约时间")
    @DateTimeFormat(pattern = "YYYY-MM-dd")
    @JSONField(format = "YYYY-MM-dd")
    @TableField("signtm")
    private Date signtm;
    /**
     * 企业码
     */
    @ApiModelProperty(value = "企业码")
    @TableField("code")
    private String code;
    /**
     * 类型 1-签约、2-虚拟
     */
    @ApiModelProperty(value = "类型 1-签约、2-虚拟")
    @TableField("type")
    private Integer type;
    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "YYYY-MM-dd")
    @JSONField(format = "YYYY-MM-dd")
    @TableField("begintime")
    private Date begintime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "YYYY-MM-dd")
    @JSONField(format = "YYYY-MM-dd")
    @TableField("endtime")
    private Date endtime;
    /**
     * 午餐截单时间
     */
    @ApiModelProperty(value = "午餐截单时间")
    @DateTimeFormat(pattern = "HH:mm:ss")
//    @JSONField(format = "HH:mm:ss")
    @TableField("endlch")
    private Date endlch;

    /**
     * 晚餐截单时间
     */
    @ApiModelProperty(value = "晚餐截单时间")
    @DateTimeFormat(pattern = "HH:mm:ss")
//    @JSONField(format = "HH:mm:ss")
    @TableField("enddnr")
    private Date enddnr;


    /**
     * 省份
     */
    @ApiModelProperty(value = "省份")
    @TableField("province")
    private String province;
    /**
     * 市
     */
    @ApiModelProperty(value = "市")
    @TableField("city")
    private String city;
    /**
     * 区
     */
    @ApiModelProperty(value = "区")
    @TableField("area")
    private String area;
    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;
    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;
    /**
     * logo
     */
    @ApiModelProperty(value = "logo")
    @TableField("logo")
    private String logo;
    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    @TableField("pic")
    private String pic;
    /**
     * 餐标
     */
    @ApiModelProperty(value = "餐标")
    @TableField("std")
    private BigDecimal std;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    /**
     * 配送费
     */
    @ApiModelProperty(value = "配送费")
    @TableField("sendcost")
    private BigDecimal sendcost;

    /**
     * 用餐人数
     */
    @ApiModelProperty(value = "用餐人数")
    @TableField("empcnt")
    private Integer empcnt;

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Date getSigntm() {
        return signtm;
    }

    public void setSigntm(Date signtm) {
        this.signtm = signtm;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public BigDecimal getStd() {
        return std;
    }

    public void setStd(BigDecimal std) {
        this.std = std;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getEndlch() {
        return endlch;
    }

    public void setEndlch(Date endlch) {
        this.endlch = endlch;
    }

    public Date getEnddnr() {
        return enddnr;
    }

    public void setEnddnr(Date enddnr) {
        this.enddnr = enddnr;
    }

    public BigDecimal getSendcost() {
        return sendcost;
    }

    public void setSendcost(BigDecimal sendcost) {
        this.sendcost = sendcost;
    }

    public Integer getEmpcnt() {
        return empcnt;
    }

    public void setEmpcnt(Integer empcnt) {
        this.empcnt = empcnt;
    }

    @Override
    public String toString() {
        return "Enterprise{" +
                "ename='" + ename + '\'' +
                ", signtm=" + signtm +
                ", code='" + code + '\'' +
                ", type=" + type +
                ", begintime=" + begintime +
                ", endtime=" + endtime +
                ", endlch=" + endlch +
                ", enddnr=" + enddnr +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", logo='" + logo + '\'' +
                ", pic='" + pic + '\'' +
                ", std=" + std +
                ", remark='" + remark + '\'' +
                ", sendcost=" + sendcost +
                ", empcnt=" + empcnt +
                '}';
    }
}
